package cn.liuhuan1.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: liuhuan
 * @Date: 2021/4/21 - 04 - 21 - 21:22
 * @Description:
 * @version: 1.0
 */
@FeignClient("service-redis")
public interface RedisClient {

    @RequestMapping(value = "/redis/setValueDate",method = RequestMethod.POST)
    public void setValueDate(@RequestParam("key") String key,
                             @RequestParam("value")String value,
                             @RequestParam("time")Long time);
    @RequestMapping(value = "/redis/getValue",method = RequestMethod.POST)

    public String getValue(@RequestParam("key") String key);
}
